@echo deleting old intermediate files ...

del *.obj *.map *.rsp *.lsp *.ksp *.def /s /q

@echo Build release version ...
bud -release -O -clean -inline  -lib -full -allobj all.d -T..\..\..\lib\dwtextra.lib -Xdwt -version=OLE_COM -version=DRAG_DROP -I..\..\

@echo -----------------------------------------      
@echo Build debug version ...
bud -debug -g -clean  -lib -full -allobj all.d -T..\..\..\lib\dwtextrad.lib -Xdwt -version=OLE_COM -version=DRAG_DROP -I..\..\

@echo -----------------------------------------
@echo you may need to copy "dwtextra.lib" "dwtextrad.lib" to \dmd\lib 
pause